package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

import static org.jsola.core.example.BaseExample.*;
import static org.jsola.hr.example.TransferAccountInfoExample.*;

/**
 * 转账账户库
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【转账账户库】的参数")
@Data
public class TransferAccountInfoUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 20, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE)
    @Length(max = 20, message = M_PHONE_MAX)
    private String phone;

    @ApiModelProperty(notes = N_ZFB_LOGIN_ID, example = E_ZFB_LOGIN_ID)
    @Length(max = 64, message = M_ZFB_LOGIN_ID_MAX)
    private String zfbLoginId;

    @ApiModelProperty(notes = N_ZFB_PID, example = E_ZFB_PID)
    @Length(max = 200, message = M_ZFB_PID_MAX)
    private String zfbPid;

    @ApiModelProperty(notes = N_ZFB_TOKEN, example = E_ZFB_TOKEN)
    @Length(max = 500, message = M_ZFB_TOKEN_MAX)
    private String zfbToken;

    @ApiModelProperty(notes = N_ZFB_ACCOUNT_BOOK_ID, example = E_ZFB_ACCOUNT_BOOK_ID)
    @Length(max = 20, message = M_ZFB_ACCOUNT_BOOK_ID_MAX)
    private String zfbAccountBookId;

    @ApiModelProperty(notes = N_SUB_MCHID, example = E_SUB_MCHID)
    @Length(max = 500, message = M_SUB_MCHID_MAX)
    private String subMchid;

    @ApiModelProperty(notes = N_BANK_ACCOUNT_ID, example = E_BANK_ACCOUNT_ID)
    @Length(max = 500, message = M_BANK_ACCOUNT_ID_MAX)
    private String bankAccountId;

    @ApiModelProperty(notes = N_COMPANY_CODE, example = E_COMPANY_CODE)
    @Length(max = 50, message = M_COMPANY_CODE_MAX)
    private String companyCode;

    @ApiModelProperty(notes = N_AGREE_NO, example = E_AGREE_NO)
    @Length(max = 50, message = M_AGREE_NO_MAX)
    private String agreeNo;

    @ApiModelProperty(notes = N_BUSI_TYPE, example = E_BUSI_TYPE)
    @Length(max = 50, message = M_BUSI_TYPE_MAX)
    private String busiType;

    @ApiModelProperty(notes = N_TYPE, example = E_TYPE)
    private Integer type;

    @ApiModelProperty(notes = N_MONEY, example = E_MONEY)
    private BigDecimal money;

    @ApiModelProperty(notes = N_SITE_NAME, example = E_SITE_NAME)
    @Length(max = 50, message = M_SITE_NAME_MAX)
    private String siteName;

    @ApiModelProperty(notes = "租户id")
    private String siteId;


}

